#include "NamedPipe.hpp"

int main()
{
    int fd=open(FIFO_NAME,O_WRONLY);
    std::cout<<"clinet open"<<std::endl;
    if(fd<0){
        perror("open");
        exit(OPENFIFO_ERR);
    }
    int cout=5;
    while(cout--)
    {
    std::string line;
    getline(std::cin,line);

    write(fd,line.c_str(),line.size());
    }
    close(fd);
    return 0;
}